<?php
declare (strict_types = 1);

namespace app\command;

use app\core\Wechat;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

class Test extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('test')
            ->setDescription('the test command');
    }

    protected function execute(Input $input, Output $output)
    {
        $wechat = new Wechat();
        //转移人员
        // $res = $wechat->transfer_customer('LiuKangKun','17861001184',['woJmQ5bwAABNon8D4FLl4sabm38F_lqw']);
        // dd($res);
        //查询转移结果
        $trans_res = $wechat->transfer_result('LiuKangKun','17861001184');
        dd($trans_res);
        // 指令输出
        $output->writeln('test');
    }
}
